package com.yykj.drup.server.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zengg
 * @since 2022-03-21
 */
@Getter
@Setter
@TableName("delivery_address")
@ApiModel(value = "DeliveryAddress对象", description = "")
public class DeliveryAddress {

    @ApiModelProperty("用户地址主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("小程序用户主键ID")
    @TableField("sns_user_id")
    private String snsUserId;

    @ApiModelProperty("小程序用户的名称")
    @TableField("sns_user_name")
    private String snsUserName;

    @ApiModelProperty("省")
    @TableField("province")
    private String province;

    @ApiModelProperty("市")
    @TableField("city")
    private String city;

    @ApiModelProperty("区")
    @TableField("district")
    private String district;

    @ApiModelProperty("详细地址")
    @TableField("address_details")
    private String addressDetails;

    @ApiModelProperty("手机号")
    @TableField("sns_phone")
    private String snsPhone;

    @ApiModelProperty("是否默认收货地址0：否 1“：是")
    @TableField("is_default")
    private Integer isDefault;

    @ApiModelProperty("删除标识")
    @TableField("is_deleted")
    private Integer isDeleted;

    private Date createdTime;


}
